package com.xneure.code.excel;

import java.io.IOException;
import java.io.OutputStream;
import java.util.Map;


public class ExcelExportProvide implements DataExport<ExcelExportHandler>{
	private ExcelExportHandler eeh;
	public ExcelExportProvide(ExcelExportHandler eeh){
		this.eeh = eeh;
	}
	@Override
	public void export(OutputStream os){
		try {
			eeh.export(null).write(os);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	@Override
	public void initParam(Map<String,String> par){
		eeh.initParam(par);
	}
}
